package com.egao.common.module.counsel.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.egao.common.core.web.JsonResult;
import com.egao.common.core.web.PageParam;
import com.egao.common.module.counsel.entity.Counsel;
import com.egao.common.module.counsel.entity.CounselStudent;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author lym
 * @date 2022/1/24 17:11
 */
public interface CounselStudentService extends IService<CounselStudent> {

    /**
     * 分页查询
     * @param pageParam 查询分页参数
     * @return List<CounselStudent>
     */
    List<CounselStudent> listPage(PageParam<CounselStudent> pageParam);

    /**
     * 取消预约
     * @param counselStudent counselStudent
     * @return JsonResult
     */
    JsonResult cancel(CounselStudent counselStudent);

    /**
     * 申请预约咨询
     * @param counselStudent counselStudent
     * @return JsonResult
     */
    JsonResult saveCounselStudent(CounselStudent counselStudent);

    /**
     * 补录导入预约咨询
     * @param file
     * @param id
     * @return
     */
    JsonResult importCounsel(MultipartFile file, Integer id);

    /**
     * 给学生推送消息告诉学生第二天有预约的咨询
     */
    void push();

    /**
     * 大屏就业咨询数据源
     * @param startDate 开始时间
     * @param endDate 结束时间
     * @return List<CounselStudent>
     */
    List<CounselStudent> listBigData(String startDate, String endDate);
}
